﻿using System.Collections.Generic;
using System.Linq;

namespace DBCodeBuilder.Core.Classes
{
    internal static class Extensions
    {
        public static bool In<T>(this T obj, params T[] args)
        {
            return args.Contains(obj);
        }

        public static List<T> Excluding<T>(this List<T> obj, params T[] args)
        {
            foreach (var arg in args)
                obj.Remove(arg);

            return obj;
        }
    }
}